package com.hfjyz.system.depart.bean;

import java.util.ArrayList;
import java.util.List;

import com.hfjyz.base.bean.BaseBean;
import com.hfjyz.base.entity.DepartEntity;

public class DepartBean extends BaseBean {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -2132618417896099604L;
    private Integer id = null;
    private String departName;
    private String departRemark;

    public DepartBean() {

    }

    public DepartBean(DepartEntity entity) {
        setId(entity.getId());
        setDepartName(entity.getDepartName());
        setDepartRemark(entity.getDepartRemark());
    }

    @Override
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getDepartRemark() {
        return departRemark;
    }

    public void setDepartRemark(String departRemark) {
        this.departRemark = departRemark;
    }

    @Override
    public List<String> toJsonArray(int index) {
        List<String> result = new ArrayList<String>();
        result.add(String.valueOf(id));
        result.add(departName);
        result.add(departRemark);
        return result;
    }

    @Override
    public String validate() {
        return null;
    }
}
